import i18n from '@src/locales'
const FLOW_MAP = {
  create: {
    name: i18n.t('task.setting.taskTypeSetting.flow.flowMap.create.name'),
    desc: i18n.t('task.setting.taskTypeSetting.flow.flowMap.create.desc'),
    icon: 'icon-xinjian',
    isSystem: true,
  },
  allot: {
    name: i18n.t('task.setting.taskTypeSetting.flow.flowMap.allot.name'),
    desc: i18n.t('task.setting.taskTypeSetting.flow.flowMap.allot.desc'),
    icon: 'icon-zhipai',
    isSystem: true
  },
  accept: {
    name: i18n.t('task.setting.taskTypeSetting.flow.flowMap.accept.name'),
    desc: i18n.t('task.setting.taskTypeSetting.flow.flowMap.accept.desc'),
    icon: 'icon-jieshou',
    isSystem: true
  },
  start: {
    name: i18n.t('task.setting.taskTypeSetting.flow.flowMap.start.name'),
    desc: i18n.t('task.setting.taskTypeSetting.flow.flowMap.start.desc'),
    icon: 'icon-kaishi',
    isSystem: false
  },
  finish: {
    name: i18n.t('task.setting.taskTypeSetting.flow.flowMap.finish.name'),
    desc: i18n.t('task.setting.taskTypeSetting.flow.flowMap.finish.desc'),
    icon: 'icon-wancheng',
    isSystem: true
  },
  cost: {
    name: i18n.t('task.setting.taskTypeSetting.flow.flowMap.cost.name'),
    desc: i18n.t('task.setting.taskTypeSetting.flow.flowMap.cost.desc'),
    icon: 'icon-jiesuan',
    isSystem: false
  },
  review: {
    name: i18n.t('task.setting.taskTypeSetting.flow.flowMap.review.name'),
    desc: i18n.t('task.setting.taskTypeSetting.flow.flowMap.review.desc'),
    icon: 'icon-huifang',
    isSystem: false
  },
  close: {
    name: i18n.t('task.setting.taskTypeSetting.flow.flowMap.close.name'),
    desc: i18n.t('task.setting.taskTypeSetting.flow.flowMap.close.desc'),
    icon: 'icon-jieshu',
    isSystem: true
  },
}

// 节点对应的状态
const flowMapState = {
  'create': 'created',
  'allot': 'allocated',
  'accept': 'accepted',
  'start': 'processing',
  'finish': 'finished',
  'cost': 'costed',
  'review': 'review',
  'close': 'close',
}

export default FLOW_MAP;

export {
  flowMapState
}